<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Complex (Several Types)</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../index.html" title="Boost.Sort">
<link rel="up" href="../linux_single.html" title="2.5.- Linux Benchmarks">
<link rel="prev" href="../linux_single.html" title="2.5.- Linux Benchmarks">
<link rel="next" href="../windows_single.html" title="2.6.- Windows Benchmarks">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../linux_single.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../linux_single.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../windows_single.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="sort.single_thread.linux_single.complex_benchmarks"></a><a class="link" href="complex_benchmarks.html" title="Complex (Several Types)">Complex
        (Several Types)</a>
</h4></div></div></div>
<div class="blockquote"><blockquote class="blockquote">
<p>
            The next results are obtained from more complex benchmarks, not include
            in the library because they use non free software (If you are interested
            in their code, contact fjtapia@gmail.com)
          </p>
<p>
            There are 3 types of benchmarks,
          </p>
<div class="blockquote"><blockquote class="blockquote">
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
                  64 bits integers
                </li>
<li class="listitem">
                  strings
                </li>
<li class="listitem">
                  objects of several sizes.
                </li>
</ul></div>
<p>
              The objects are arrays of integers. The heavy comparison sums all the
              elements in each, and the light comparison uses only the first number
              of the array.
            </p>
</blockquote></div>
<h5>
<a name="sort.single_thread.linux_single.complex_benchmarks.h0"></a>
            <span class="phrase"><a name="sort.single_thread.linux_single.complex_benchmarks.100_000_000_numbers_of_64_bits_r"></a></span><a class="link" href="complex_benchmarks.html#sort.single_thread.linux_single.complex_benchmarks.100_000_000_numbers_of_64_bits_r"><span class="underline">100 000 000 Numbers of 64 bits Randomly Filled</span></a>
          </h5>
<p>
            <span class="bold"><strong>
<pre class="programlisting">                    |         |             |
                    |  Time   |   Maximum   |
                    |  secs   | Memory Used |
--------------------+---------+-------------+
 std::sort          |  8.2154 |     784 MB  |
 pdqsort            |  3.9356 |     784 MB  |
                    |         |             |
 std::stable_sort   |  8.5016 |    1176 MB  |
 spinsort           |  9.4262 |    1175 MB  |
 flat_stable_sort   | 10.6790 |     788 MB  |
 spreadsort         |  4.2248 |     785 MB  |
                    |         |             |
</pre>
            </strong></span>
          </p>
<h5>
<a name="sort.single_thread.linux_single.complex_benchmarks.h1"></a>
            <span class="phrase"><a name="sort.single_thread.linux_single.complex_benchmarks.10_000_000_strings_randomly_fill"></a></span><a class="link" href="complex_benchmarks.html#sort.single_thread.linux_single.complex_benchmarks.10_000_000_strings_randomly_fill"><span class="underline">10 000 000 Strings Randomly Filled</span></a>
          </h5>
<p>
            <span class="bold"><strong>
<pre class="programlisting">                    |         |             |
                    |  Time   |   Maximum   |
                    |  secs   | Memory Used |
--------------------+---------+-------------+
 std::sort          |  6.2442 |    822 MB   |
 pdqsort            |  6.6661 |    821 MB   |
                    |         |             |
 std::stable_sort   | 12.2620 |   1134 MB   |
 spinsort           |  8.5996 |    978 MB   |
 flat_stable_sort   |  9.2559 |    978 MB   |
 spreadsort         |  2.4323 |    822 MB   |
                    |         |             |
</pre>
            </strong></span>
          </p>
<h5>
<a name="sort.single_thread.linux_single.complex_benchmarks.h2"></a>
            <span class="phrase"><a name="sort.single_thread.linux_single.complex_benchmarks.objects_randomly_filled"></a></span><a class="link" href="complex_benchmarks.html#sort.single_thread.linux_single.complex_benchmarks.objects_randomly_filled"><span class="underline">Objects Randomly Filled</span></a>
          </h5>
<div class="blockquote"><blockquote class="blockquote">
<p>
              The objects are arrays of 64 bits numbers
            </p>
<p>
              They are compared in two ways :
            </p>
<div class="blockquote"><blockquote class="blockquote">
<p>
                (H) Heavy : The comparison is the sum of all the numbers of the array.
              </p>
<p>
                (L) Light : The comparison is using only the first element of the
                array, as a key
              </p>
</blockquote></div>
</blockquote></div>
<p>
            <span class="bold"><strong>
<pre class="programlisting">                 |           |           |           |           |           |           |             |
                 | 100000000 |  50000000 |  25000000 |  12500000 |   6250000 |   1562500 |             |
                 | objects of| objects of| objects of| objects of| objects of| objects of|   Maximum   |
                 |  8 bytes  | 16 bytes  | 32 bytes  | 64 bytes  | 128 bytes | 512 bytes |   Memory    |
                 |           |           |           |           |           |           |   Used      |
                 |  H     L  |  H     L  |  H     L  |  H     L  |  H     L  |  H     L  |             |
-----------------+-----------+-----------+-----------+-----------+-----------+-----------+-------------+
std::sort        | 8.25  8.26| 4.46  4.23| 2.67  2.33| 2.10  1.45| 1.72  1.11| 1.13  0.76|    786 MB   |
pdqsort          | 8.17  8.17| 4.42  4.11| 2.57  2.26| 1.78  1.37| 1.46  1.06| 0.97  0.70|    786 MB   |
                 |           |           |           |           |           |           |             |
std::stable_sort |10.28 10.25| 5.57  5.24| 3.68  3.26| 2.97  2.59| 2.60  2.46| 2.38  2.29|   1177 MB   |
spinsort         | 9.70  9.69| 5.25  4.89| 3.28  2.65| 2.41  1.92| 2.03  1.66| 1.66  1.52|   1176 MB   |
flat_stable_sort |10.75 10.73| 6.44  5.99| 4.36  3.71| 3.59  2.86| 3.04  2.11| 1.64  1.45|    789 MB   |
spreadsort       | 5.10  5.10| 3.79  4.18| 2.22  1.88| 1.58  1.11| 1.51  0.99| 0.74  0.53|    786 MB   |
                 |           |           |           |           |           |           |             |
</pre>
            </strong></span>
          </p>
</blockquote></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2014-2017 Steven
      Ross, Francisco Tapia, Orson Peters<p>
        Distributed under the <a href="http://boost.org/LICENSE_1_0.txt" target="_top">Boost
        Software License, Version 1.0</a>.
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../linux_single.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../linux_single.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../windows_single.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
